import http from "../utils/http"

// 获取文章数据
const getArticleList = (params = {})=> http.post("/api/v1/articleList",params)
// 删除文章
const delArt = (id)=>http.post("/api/v1/artDel",{id});
// 根据id获取文章
const getArt = (id)=>http.post("/api/v1/getArt",{id});
// 编辑文章
const editArt = (params)=>http.post("/api/v1/updateArt",params);
// 用户登录
const login = (params)=>http.post("/api/v1/login",params);
export {
	getArticleList,
	delArt,
	getArt,
	editArt,
	login
}
